-- GENERATED SPELL FOR [Blackwing Drakonaar] --


function spell0_20911(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(39038,pUnit)
pUnit:RegisterEvent('Sorts_20911', 8322, 1)
end

function spell1_20911(pUnit, Event) --@Brood Power: Black,n/a--
pUnit:FullCastSpellOnTarget(39033,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20911', 663, 1)
end

function spell2_20911(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(13737,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20911', 5253, 1)
end

function Sorts_20911(pUnit, Event)
local choix_sorts_20911 = math.random(0, 2)
if choix_sorts_20911 == 0 then
pUnit:RegisterEvent('spell0_20911', 1, 1)
end
if choix_sorts_20911 == 1 then
pUnit:RegisterEvent('spell1_20911', 1, 1)
end
if choix_sorts_20911 == 2 then
pUnit:RegisterEvent('spell2_20911', 1, 1)
end
end

function mob20911_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20911', math.random(1500, 3000), 1)
end

function mob20911_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20911_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20911_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20911, 1, 'mob20911_Action')
RegisterUnitEvent(20911, 2, 'mob20911_Leave')
RegisterUnitEvent(20911, 3, 'mob20911_Kill')
RegisterUnitEvent(20911, 4, 'mob20911_Die')
